package com.jspgou.cms.entity.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the jc_shop_errlogin table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="jc_shop_errlogin"
 */

public abstract class BaseLockLogin  implements Serializable {

	public static String REF = "LockLogin";
	public static String PROP_ERROR_COUNT = "errorCount";
	public static String PROP_ERROR_MAX_COUNT = "errorMaxCount";
	public static String PROP_ERROR_TIME = "errorTime";
	public static String PROP_ID = "id";
	public static String PROP_LOCK_TIME = "lockTime";


	// constructors
	public BaseLockLogin () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseLockLogin (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseLockLogin (
		java.lang.Integer id,
		java.lang.Integer errorCount) {

		this.setId(id);
		this.setErrorCount(errorCount);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.Integer errorCount;
	private java.util.Date errorTime;
	private java.lang.Integer errorMaxCount;
	private java.lang.String lockTime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: errorCount
	 */
	public java.lang.Integer getErrorCount () {
		return errorCount;
	}

	/**
	 * Set the value related to the column: errorCount
	 * @param errorCount the errorCount value
	 */
	public void setErrorCount (java.lang.Integer errorCount) {
		this.errorCount = errorCount;
	}


	/**
	 * Return the value associated with the column: errorTime
	 */
	public java.util.Date getErrorTime () {
		return errorTime;
	}

	/**
	 * Set the value related to the column: errorTime
	 * @param errorTime the errorTime value
	 */
	public void setErrorTime (java.util.Date errorTime) {
		this.errorTime = errorTime;
	}


	/**
	 * Return the value associated with the column: errorMaxCount
	 */
	public java.lang.Integer getErrorMaxCount () {
		return errorMaxCount;
	}

	/**
	 * Set the value related to the column: errorMaxCount
	 * @param errorMaxCount the errorMaxCount value
	 */
	public void setErrorMaxCount (java.lang.Integer errorMaxCount) {
		this.errorMaxCount = errorMaxCount;
	}


	/**
	 * Return the value associated with the column: lockTime
	 */
	public java.lang.String getLockTime () {
		return lockTime;
	}

	/**
	 * Set the value related to the column: lockTime
	 * @param lockTime the lockTime value
	 */
	public void setLockTime (java.lang.String lockTime) {
		this.lockTime = lockTime;
	}



	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.jspgou.cms.entity.LockLogin)) return false;
		else {
			com.jspgou.cms.entity.LockLogin lockLogin = (com.jspgou.cms.entity.LockLogin) obj;
			if (null == this.getId() || null == lockLogin.getId()) return false;
			else return (this.getId().equals(lockLogin.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}